package com.freemalll.merchant.domain.entity.coopManagement;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.freemalll.merchant.common.AbstractBaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 资方费率配置明细表
 * </p>
 *
 * @author songshixiong
 * @since 2025-07-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mer_asset_rate_manage_detail")
@Schema(description = "资方费率配置明细表")
public class MerAssetRateManageDetail extends AbstractBaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId(value = "detail_id", type = IdType.ASSIGN_UUID)
    private String detailId;

    @Schema(description = "费率主键")
    @TableField("rate_id")
    private String rateId;

    @Schema(description = "期数")
    @TableField("times")
    private Integer times;

    @Schema(description = "年利率")
    @TableField("interest_rate")
    private BigDecimal interestRate;

    @Schema(description = "启用状态 0禁用 1 启用")
    @TableField("enable_flag")
    private Boolean enableFlag;


}
